package untiring07.oop;

public class J31_RetanlgeService implements J31_Retangleinterface {

	@Override
	public float getArea1(J31_RetangleVO r) {
		return r.getWidth() * r.getHeight();
	}

	@Override
	public float getPerimeter1(J31_RetangleVO r) {
		return 2 * r.getWidth() + 2 * r.getHeight();
	}
//	public float getPerimeter1(float width,float height) {
//		return 2 * Width + 2 * Height;
//	}
}
